package com.jk.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jk.entity.InvestEntity;
import com.jk.entity.InvestmentTypeEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author 纪思齐
 * @version 1.0
 * @BelongsProject: 2203java-financial
 * @BelongsPackage: com.jk.dao
 * @description: TODO   可投资资产的持久层
 * @date 2022/11/2 10:42
 */
@Repository
public interface InvestDao extends BaseMapper<InvestEntity> {

    List<InvestEntity> queryInvestmentList(@Param("investEntity") InvestEntity investEntity);

    InvestEntity queryInvestmentGetById(@Param("propertyId") Integer propertyId);

    void updateInvestById(Integer propertyId, BigDecimal price);

    List<InvestmentTypeEntity> getInvestmentTypeList();
}
